package com.example.zz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 试题库表
 * </p>
 *
 * @author ${author}
 * @since 2021-01-14
 */
public class ItemBank implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 编号主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 试题内容
     */
    private String testQuestions;

    /**
     * 试题状态（0发布，1未发布）
     */
    private Integer state;

    /**
     * 试题类型外键
     */
    private Long itemBankTypeId;

    /**
     * 得分外键 
     */
    private Long scorId;

    /**
     * 题上传地址
     */
    private String url;

    /**
     * 发布老师外键
     */
    private Long teaId;

    /**
     * 发布班级外键
     */
    private Long classId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 乐观锁
     */
    private Integer version;

    /**
     * 逻辑删除
     */
    private Integer isDelete;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTestQuestions() {
        return testQuestions;
    }

    public void setTestQuestions(String testQuestions) {
        this.testQuestions = testQuestions;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getItemBankTypeId() {
        return itemBankTypeId;
    }

    public void setItemBankTypeId(Long itemBankTypeId) {
        this.itemBankTypeId = itemBankTypeId;
    }

    public Long getScorId() {
        return scorId;
    }

    public void setScorId(Long scorId) {
        this.scorId = scorId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getTeaId() {
        return teaId;
    }

    public void setTeaId(Long teaId) {
        this.teaId = teaId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "ItemBank{" +
        "id=" + id +
        ", testQuestions=" + testQuestions +
        ", state=" + state +
        ", itemBankTypeId=" + itemBankTypeId +
        ", scorId=" + scorId +
        ", url=" + url +
        ", teaId=" + teaId +
        ", classId=" + classId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", version=" + version +
        ", isDelete=" + isDelete +
        "}";
    }
}
